<?php  
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

defined('_JEXEC') or die('Retricted Access');
JHTML::_('behavior.tooltip');

?>
<?php  global $mainframe;?>
<style type="text/css">
	td.key{
		font-weight:normal !important;
		text-align:left !important;
	}
	td.master{
		font-weight:bold !important;
	}
</style>
<form action="index.php" method="post" name="adminForm">
<div class="col100">
	<fieldset class="adminform">
		<?php echo $this->getTabs();?>
	</fieldset>	
	<fieldset class="adminform">

		<table class="admintable" width="100%">
		<tbody>		
			<tr>
				<td class="key">
					<label for="emails[enabled]"  class="editlinktip hasTip" title="<?php echo JText::_( 'ENABLE SEND EMAIL AUTOMATICALLY TOOLTIP' ); ?>"><?php echo JText::_( 'Enable Send Email function' ); ?>?</label>
				</td>
				<td>
					<?php echo JHTML::_('select.booleanlist', 'emails[enabled]', '', $this->params->get('enabled'));?>
				</td>
			</tr>	
			<tr>
				<td class="key">
					<label for="sitname"><?php echo JText::_( 'Site Name or Company Name' ); ?></label>:
				</td>
				<td>
					<input type="text" name="emails[sitname]" value="<?php echo $this->params->get('sitname');?>" id="sitname"  size="50">
				</td>
			</tr>
			<tr>
				<td class="key">
					<label for="fromname"><?php echo JText::_( 'From name' ); ?></label>:
				</td>
				<td>
					<input type="text" name="emails[fromname]" value="<?php echo $this->params->get('fromname');?>" id="fromname"  size="50">
				</td>
			</tr>
			<tr>
				<td class="key">
					<label for="fromemail"><?php echo JText::_( 'From email' ); ?></label>:
				</td>
				<td>
					<input type="text" name="emails[fromemail]" value="<?php echo $this->params->get('fromemail');?>" id="fromemail"  size="50">
				</td>
			</tr>
			<tr>
				<td class="key">
					<label for="ccemail"><?php echo JText::_( 'Cc email' ); ?></label>:
				</td>
				<td>
					<input type="text" name="emails[ccemail]" value="<?php echo $this->params->get('ccemail');?>" id="ccemail"  size="50">
					 (<small><?php echo JText::_('enter email addresses separated by commas')?></small>)
				</td>
			</tr>
			
			<tr>
				<td class="key">
					<label for="sendmode" class="editlinktip hasTip" title="<?php echo JText::_( 'SEND EMAIL IN HTML MODE TOOLTIP' ); ?>"><?php echo JText::_( 'Send email in html mode' ); ?></label>:
				</td>
				<td>
					<select name="emails[sendmode]" id="sendmode" size="">
						<option value="1" <?php if ($this->params->get('sendmode') == 1) { echo "selected"; } ?>><?php echo JText::_("Yes");?></option>
						<option value="0" <?php if ($this->params->get('sendmode') == 0) { echo "selected"; } ?>><?php echo JText::_("No");?></option>
					</select>
				</td>
			</tr>
			
					
			<!--<tr>
				<td class="key " style="width:40%">
					<label for="email_admin_receipt_switch"><?php echo JText::_( "Send Application Receipts to admins?" ); ?></label>:
				</td>
				<td>
					<?php $email_admin_receipt_switch = $this->params->get('email_admin_receipt_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_admin_receipt_switch]', '', $email_admin_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="email_candidate_receipt_switch"><?php echo JText::_( "Send Application Receipts to candidates?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_candidate_receipt_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_candidate_receipt_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="email_order_completed_switch"><?php echo JText::_( "Send Email to a customer when an order is Completed?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_order_completed_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_order_completed_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="email_member_exp_switch"><?php echo JText::_( "Send Email to a customer when a membership had expired?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_member_exp_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_member_exp_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="email_subscr_exp_switch"><?php echo JText::_( "Send Email to an Employer when a subscription to view resumes had expired?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_subscr_exp_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_subscr_exp_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="jb_email_post_appr_switch"><?php echo JText::_( "Send Email to an Employer when their job post had been approved?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('jb_email_post_appr_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[jb_email_post_appr_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>	
			<tr>
				<td class="key ">
					<label for="jb_email_post_disapp_switch"><?php echo JText::_( "Send Email to an Employer when their job post had been disapproved?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('jb_email_post_disapp_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[jb_email_post_disapp_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>
			<tr>
				<td class="key ">
					<label for="email_employer_signup_switch"><?php echo JText::_( "Send Email to Admin When a New Employer Signs Up?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_employer_signup_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_employer_signup_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>
			<tr>
				<td class="key ">
					<label for="email_new_post_switch"><?php echo JText::_( "Send Email to Admin When a New Job is Posted?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('email_new_post_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[email_new_post_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>
			<tr>
				<td class="key ">
					<label for="email_new_post_switch"><?php echo JText::_( "Send Email to an Admin when a resume is posted / updated?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('jb_email_admin_resupdate_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[jb_email_admin_resupdate_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>
			<tr>
				<td class="key ">
					<label for="jb_email_admin_neword_switch"><?php echo JText::_( "Send Email to an Admin when a new order is placed?" ); ?></label>:
				</td>
				<td>
					<?php $email_candidate_receipt_switch = $this->params->get('jb_email_admin_neword_switch')?1:0;?>
					<?php echo JHTML::_('select.booleanlist', 'emails[jb_email_admin_neword_switch]', '', $email_candidate_receipt_switch);?>
					
				</td>
			</tr>-->
			
		</tbody>
		</table>
	</fieldset>
</div>
<div class="clr"></div>
<input type="hidden" name="option" value="<?php echo JBCOMNAME; ?>" />
<input type="hidden" name="view" value="jaconfiguration" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="tab" value="<?php echo $this->tab; ?>" />
<input type="hidden" name="cid" value="<?php echo $this->cid; ?>" />
<?php echo JHTML::_( 'form.token' ); ?>	
 </form>